﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SfcorpDLL.ety
{
    public class etyFrtAgyBns //: ICloneable
    {
        //public object Clone()
        //{
        //    return this.MemberwiseClone();
        //} 
        private string fabc_gkey = "";
        public string FABC_GKEY
        {
            set { fabc_gkey = value; }
            get { return fabc_gkey; }
        }

        private string bns_status = "";
        public string BNS_STATUS
        {
            set { bns_status = value; }
            get { return bns_status; }
        }

        private string bns_status_c = "";
        public string BNS_STATUS_C
        {
            set { bns_status_c = value; }
            get { return bns_status_c; }
        }

        private string bns_status_d = "";
        public string BNS_STATUS_D
        {
            set { bns_status_d = value; }
            get { return bns_status_d; }
        }


        private string charge_no = "";
        public string CHARGE_NO
        {
            set { charge_no = value; }
            get { return charge_no; }
        }

        private string contract_no = "";
        public string CONTRACT_NO
        {
            set { contract_no = value; }
            get { return contract_no; }
        }

        private string customer_id = "";
        public string CUSTOMER_ID
        {
            set { customer_id = value; }
            get { return customer_id; }
        }

        private string invoice_no = "";
        public string INVOICE_NO
        {
            set { invoice_no = value; }
            get { return invoice_no; }
        }

        private string customer_nam = "";
        public string CUSTOMER_NAM
        {
            set { customer_nam = value; }
            get { return customer_nam; }
        }

        private string port_code = "";
        public string PORT_CODE
        {
            set { port_code = value; }
            get { return port_code; }
        }

        private string lst_mod = "";
        public string LST_MOD
        {
            set { lst_mod = value; }
            get { return lst_mod; }
        }

        private string fee_way_id = "";
        public string FEE_WAY_ID
        {
            set { fee_way_id = value; }
            get { return fee_way_id; }
        }

        private string fee_way_nam = "";
        public string FEE_WAY_NAM
        {
            set { fee_way_nam = value; }
            get { return fee_way_nam; }
        }

        private string client_id = "";
        public string CLIENT_ID
        {
            set { client_id = value; }
            get { return client_id; }
        }

        private string client_contact = "";
        public string CLIENT_CONTACT
        {
            set { client_contact = value; }
            get { return client_contact; }
        }

        private string port_id = "";
        public string PORT_ID
        {
            set { port_id = value; }
            get { return port_id; }
        }

        private string port_nam = "";
        public string PORT_NAM
        {
            set { port_nam = value; }
            get { return port_nam; }
        }

        private string i_e_id = "";
        public string I_E_ID
        {
            set { i_e_id = value; }
            get { return i_e_id; }
        }

        private string i_e_nam = "";
        public string I_E_NAM
        {
            set { i_e_nam = value; }
            get { return i_e_nam; }
        }

        private string collaborate_id = "";
        public string COLLABORATE_ID
        {
            set { collaborate_id = value; }
            get { return collaborate_id; }
        }

        private string collaborate_nam = "";
        public string COLLABORATE_NAM
        {
            set { collaborate_nam = value; }
            get { return collaborate_nam; }
        }

        private string cntr_corp_cod = "";
        public string CNTR_CORP_COD
        {
            set { cntr_corp_cod = value; }
            get { return cntr_corp_cod; }
        }

        private string cntr_corp_nam = "";
        public string CNTR_CORP_NAM
        {
            set { cntr_corp_nam = value; }
            get { return cntr_corp_nam; }
        }

        private string sea_bill_no = "";
        public string SEA_BILL_NO
        {
            set { sea_bill_no = value; }
            get { return sea_bill_no; }
        }

        private string agent_bill_no = "";
        public string AGENT_BILL_NO
        {
            set { agent_bill_no = value; }
            get { return agent_bill_no; }
        }

        private string booking_no = "";
        public string BOOKING_NO
        {
            set { booking_no = value; }
            get { return booking_no; }
        }

        private string work_way_id = "";
        public string WORK_WAY_ID
        {
            set { work_way_id = value; }
            get { return work_way_id; }
        }

        private string work_way_nam = "";
        public string WORK_WAY_NAM
        {
            set { work_way_nam = value; }
            get { return work_way_nam; }
        }

        private string cntr_siz_cod = "";
        public string CNTR_SIZ_COD
        {
            set { cntr_siz_cod = value; }
            get { return cntr_siz_cod; }
        }

        private string cntr_siz_nam = "";
        public string CNTR_SIZ_NAM
        {
            set { cntr_siz_nam = value; }
            get { return cntr_siz_nam; }
        }

        private string cntr_typ_cod = "";
        public string CNTR_TYP_COD
        {
            set { cntr_typ_cod = value; }
            get { return cntr_typ_cod; }
        }

        private string cntr_typ_nam = "";
        public string CNTR_TYP_NAM
        {
            set { cntr_typ_nam = value; }
            get { return cntr_typ_nam; }
        }

        private string ship_cod = "";
        public string SHIP_COD
        {
            set { ship_cod = value; }
            get { return ship_cod; }
        }

        private string voyage = "";
        public string VOYAGE
        {
            set { voyage = value; }
            get { return voyage; }
        }

        private string cargo_cod = "";
        public string CARGO_COD
        {
            set { cargo_cod = value; }
            get { return cargo_cod; }
        }
        private string cargo_nam = "";
        public string CARGO_NAM
        {
            set { cargo_nam = value; }
            get { return cargo_nam; }
        }

        private string undg_no = "";
        public string UNDG_NO
        {
            set { undg_no = value; }
            get { return undg_no; }
        }

        private string flow_cod = "";
        public string FLOW_COD
        {
            set { flow_cod = value; }
            get { return flow_cod; }
        }

        private string cntr = "";
        public string CNTR
        {
            set { cntr = value; }
            get { return cntr; }
        }

        private string weighing = "";
        public string WEIGHING
        {
            set { weighing = value; }
            get { return weighing; }
        }

        public bool B_WEIGHING
        {
            set {
                if (value)
                    WEIGHING = "1";
                else
                    WEIGHING = "0";
            }
            get {
                if (WEIGHING.Trim() == "0")
                    return false;
                else
                    return true;
            }
        }

        private string cntr_ctrl_cod = "";
        public string CNTR_CTRL_COD
        {
            set { cntr_ctrl_cod = value; }
            get { return cntr_ctrl_cod; }
        }

        private string cntr_ctrl_nam = "";
        public string CNTR_CTRL_NAM
        {
            set { cntr_ctrl_nam = value; }
            get { return cntr_ctrl_nam; }
        }

        private string cntr_oper_cod = "";
        public string CNTR_OPER_COD
        {
            set { cntr_oper_cod = value; }
            get { return cntr_oper_cod; }
        }

        private string cntr_oper_nam = "";
        public string CNTR_OPER_NAM
        {
            set { cntr_oper_nam = value; }
            get { return cntr_oper_nam; }
        }

        private string rec_nam = "";
        public string REC_NAM
        {
            set { rec_nam = value; }
            get { return rec_nam; }
        }
        private string rec_tim = "";
        public string REC_TIM
        {
            set { rec_tim = value; }
            get { return rec_tim; }
        }
        private string update_nam = "";
        public string UPDATE_NAM
        {
            set { update_nam = value; }
            get { return update_nam; }
        }

        private string update_tim= "";
        public string UPDATE_TIM
        {
            set { update_tim = value; }
            get { return update_tim; }
        }
        private string cancel_nam = "";
        public string CANCEL_NAM
        {
            set { cancel_nam = value; }
            get { return cancel_nam; }
        }
        private string ship_nam = "";
        public string SHIP_NAM
        {
            set { ship_nam = value; }
            get { return ship_nam; }
        }

        private string bns_spc_mod = "";
        public string BNS_SPC_MOD
        {
            set { bns_spc_mod = value; }
            get { return bns_spc_mod; }
        }

        private string bns_spc_mod_desc = "";
        public string BNS_SPC_MOD_DESC
        {
            set { bns_spc_mod_desc = value; }
            get { return bns_spc_mod_desc; }
        }


        private string fabd_gkey = "";
        public string FABD_GKEY
        {
            set { fabd_gkey = value; }
            get { return fabd_gkey; }
        }

        private string foreign_vvd = "";
        public string FOREIGN_VVD
        {
            set { foreign_vvd = value; }
            get { return foreign_vvd; }
        }
        private string foreign_vvd_desc = "";
        public string FOREIGN_VVD_DESC
        {
            set { foreign_vvd_desc = value; }
            get { return foreign_vvd_desc; }
        }
        private string contract_date = "";
        public string CONTRACT_DATE
        {
            set { contract_date = value; }
            get { return contract_date; }
        }
        private string cntr_count = "";
        public string CNTR_COUNT
        {
            set { cntr_count = value; }
            get { return cntr_count; }
        }
        //private string bns_img_len = "";
        ///// <summary>
        ///// 控制显示的图片
        ///// </summary>
        //public string BNS_IMG_LEN
        //{
        //    set { bns_img_len = value; }
        //    get { return bns_img_len; }
        //}

        private string fabd_remarks = "";
        public string FABD_REMARKS
        {
            set { fabd_remarks = value; }
            get { return fabd_remarks; }
        }

        private byte[] bns_img;
        /// <summary>
        /// 只显示之用
        /// </summary>
        public byte[] BNS_IMG
        {
            set { bns_img = value; }
            get {
                //if (string.IsNullOrEmpty(BNS_IMG_LEN) || BNS_IMG_LEN.Length<4 )  //4位是默认的小小小图
                //{
                //    //return TT.Common.ImageProcess.getImageByte(System.IO.Directory.GetCurrentDirectory() + @"\bnsBlack.jpg");
                //    return bns_img;
                //}
                //else
                //    return TT.Common.ImageProcess.getImageByte(System.IO.Directory.GetCurrentDirectory() + @"\image\bnsReport.gif");
                return bns_img; 
            }
        }

        private string rowid = "";
        public string ROWID
        {
            set { rowid = value; }
            get { return rowid; }
        }

        //private byte[] bns_img_save = TT.Common.ImageProcess.getImageByte(System.IO.Directory.GetCurrentDirectory() + @"\image\bnsReport.gif");
        private byte[] bns_img_save;
        /// <summary>
        /// 保存之用
        /// </summary>
        public byte[] BNS_IMG_SAVE
        {
            set { bns_img_save = value; }
            get
            {
                return bns_img_save;
            }
        }

        private string file_name = "";
        public string FILE_NAME
        {
            set { file_name = value; }
            get { return file_name; }
        }

        private string sql_where = "";
        public string SQL_WHERE
        {
            set { sql_where = value; }
            get { return sql_where; }
        }

        private string box20 = "";
        public string BOX20
        {
            set { box20 = value; }
            get { return box20; }
        }
        private string box40 = "";
        public string BOX40
        {
            set { box40 = value; }
            get { return box40; }
        }
        private string box45 = "";
        public string BOX45
        {
            set { box45 = value; }
            get { return box45; }
        }
        private string teu = "";
        public string TEU
        {
            set { teu = value; }
            get { return teu; }
        }
        private string i_amount = "";
        public string I_AMOUNT
        {
            set { i_amount = value; }
            get { return i_amount; }
        }
        private string o_amount = "";
        public string O_AMOUNT
        {
            set { o_amount = value; }
            get { return o_amount; }
        }

        private string boxs = "";
        public string BOXS
        {
            set { boxs = value; }
            get { return boxs; }
        }
    }
}
